<template>
  <div class="main" />
</template>

<script>
import * as echarts from 'echarts'
export default {
  name: 'ProjectBackEcharts',

  data() {
    return {

    }
  },

  mounted() {
    const myChart = echarts.init(document.querySelector('.main'))
    // 绘制图表
    myChart.setOption({
      title: {
        text: '数量'
      },
      tooltip: {},
      xAxis: {
        data: ['客户数量', '房产数量', '角色数量', '用户数量', '分类数量', '经纪数量']
      },
      yAxis: {},
      series: [
        {
          name: '销量',
          type: 'bar',
          data: [5, 20, 36, 10, 10, 20]
        }
      ]
    })
  },

  methods: {

  }
}
</script>

<style lang="scss" scoped>
.main{
  height: 400px;
}
</style>
